#pragma once
#include <assert.h>

void* my_memcpy(void* dest,const void* src,size_t num)
{
	assert(dest && src);
	void* base = dest;
	while(num--)
	{
		*(char*)dest = *(char*)src;
		dest = (char*)dest + 1;
		src = (char*)src + 1;
	}
	return base;
}